package cn.edu.ujn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
public class ViewController {

    @RequestMapping("/html/pic")
    public String pic_detection(){
        return "index";
    }

    @RequestMapping("/html/video")
    public String video_detection(){
        return "index2";
    }

    @RequestMapping("/admin")
    public String admin(){
        return "admin";
    }


    @PostMapping("/userLogin")
    public void userLogin(@RequestBody Map<String,String> mapList){
        System.out.println(mapList.get("testValue"));
    }
}
